package com.soulkun.smarthome.ui.main.personal.adapter

import android.content.Context
import android.view.View
import androidx.databinding.ObservableArrayList
import androidx.databinding.ViewDataBinding
import androidx.recyclerview.widget.LinearLayoutManager
import com.soulkun.smarthome.R
import com.soulkun.smarthome.databinding.AppRecycleItemMainPersonalMessageAlertContainerListBinding
import com.soulkun.smarthome.databinding.AppRecycleItemMainPersonalMessageAlertContainerMessageListBinding
import com.soulkun.smarthome.logic.model.FamilyModel
import com.soulkun.smarthome.logic.vo.AlertMessageHistoryItemVO
import com.soulkun.smarthome.logic.vo.AlertMessageHistoryVO
import soulkun.library.helper.decoration.LinearSpaceItemDecorationHelper
import soulkun.library.mvvm.adapter.BaseDataBindingRecyclerViewAdapter

class AppMainPersonalMessageAlertContainerMessageListAdapter(
    context: Context,
    dataList: ObservableArrayList<AlertMessageHistoryItemVO>
) :
    BaseDataBindingRecyclerViewAdapter<AlertMessageHistoryItemVO>(context, dataList) {

    override fun getContentLayoutResId(): Int {
        return R.layout.app_recycle_item_main_personal_message_alert_container_message_list
    }

    override fun setContentViewHolderCreateListener(binding: ViewDataBinding) {
    }

    override fun setContentViewHolderBindListener(binding: ViewDataBinding, dataPosition: Int) {
        (binding as AppRecycleItemMainPersonalMessageAlertContainerMessageListBinding).alertMessageHistoryItemVO = dataList[dataPosition]
    }

}